﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WXYW.Entities;
using WXYW.DAL;
using WXYW.Model;
namespace WXYW.BLL
{
    public class ChangeLogService : RepositoryBase
    {
        public void AddChangeLog(ChangeLogType logType, string referenceID, string changeContent)
        {
            try
            {
                ChangeLog logEntity = new ChangeLog();
                logEntity.Type = logType.ToString();
                logEntity.ReferenceID = referenceID;
                logEntity.ChangeContent = changeContent;
                logEntity.DateTime = DateTime.Now;
                InsertEntity(logEntity);
            }
            catch (Exception ex)
            { 
            }
        }
    }
}
